
var file = require('./abc.json');
console.log(file);
console.log(file.development);
/*
output:
wzq@wzq-pc:~/work/workspace/no_cvs/aa$ node require_json.js 
{ development: { id: 'master-server-1', host: '127.0.0.1', port: 3005 },
  production: { id: 'master-server-1', host: '127.0.0.1', port: 3005 } }
{ id: 'master-server-1', host: '127.0.0.1', port: 3005 }

*/

/*
file abc.json 
{
    "development":{
        "id":"master-server-1",
        "host":"127.0.0.1",
        "port":3005
    },

    "production":{
        "id":"master-server-1",
        "host":"127.0.0.1",
        "port":3005
    }
}

*/